package com.leyou.item.mapper;

import com.leyou.item.pojo.Spu;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface SpuMapper extends Mapper<Spu> {

    // 上架
    @Update("update tb_spu set saleable=1 where id = #{pid}")
    void upSpu(Long pid);

    // 下架
    @Update("update tb_spu set saleable=0 where id = #{pid}")
    void downSpu(Long pid);
}